﻿@model IEnumerable<CS795.TravelAgency.Models.TripSummaryViewModel>

@{
    ViewBag.Title = "Trips";
}

<div>
    <div class="panel-heading">
        <strong>Trips</strong>
    </div>
    <table class="table table-bordered table-condensed table-hover table-striped">
        <thead>
            <tr>
                <th>Trip ID</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var m in Model)
            {
                @Html.Partial("_TripPartial", m)
            }
        </tbody>
    </table>
    @Html.ActionLink("Create New Trip", "Create", "Trip", routeValues: new { customerId = ViewBag.CustomerId }, htmlAttributes: new { @class = "btn btn-default" })
</div>